home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Applications / Macintosh Tracker 1.20 / source / Tracker Client Folder / Core 18⁄March⁄1994 / CButton.c < prev    next >
Encoding:
Text File  |  1993-05-23  |  4.0 KB  |  19 lines  |  [TEXT/KAHL]

  1. /* CButton.c */
  2.  
  3. #include "CButton.h"
  4. #include "CWindow.h"
  5. #include "CEnclosure.h"
  6.  
  7.  
  8. #define MinTime (5) /* minimum time to hilite a button when pressed by key */
  9.  
  10.  
  11. /* initialize the button */
  12. void            CButton::IButton(LongPoint Start, LongPoint Extent, char Key, short Modifiers,
  13.                         CWindow* TheWindow, CEnclosure* TheEnclosure)
  14.     {
  15.         ERROR(Initialized == True,PRERR(ForceAbort,
  16.             "CButton::IButton called on already initialized object."));
  17.         EXECUTE(Initialized = True);
  18.         KeyEquivalent = Key;
  19.         KeyModifiers